package com.example.com.daervideo.entity;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import java.io.Serializable;
import java.util.Observable;

import com.example.com.daervideo.BR;

import me.goldze.mvvmhabit.base.BaseViewModel;

public class UserData extends BaseObservable implements Serializable {

    /**
     * inviteCode : 10785887
     * sign : null
     * followNum : 0
     * icon : null
     * fansNum : 0
     * loginName : null
     */

    private int inviteCode;

    private String sign;
    private int followNum;
    private String icon;
    private int fansNum;
    private String loginName;


    public String getInviteCode() {
        return "火牛号(邀请码):" + inviteCode;
    }

    public void setInviteCode(int inviteCode) {
        this.inviteCode = inviteCode;

    }

    @Bindable
    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
        notifyPropertyChanged(BR.sign);
    }

    public int getFollowNum() {
        return followNum;
    }

    public void setFollowNum(int followNum) {
        this.followNum = followNum;
    }

    @Bindable
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
        notifyPropertyChanged(BR.icon);
    }

    public int getFansNum() {
        return fansNum;
    }

    public void setFansNum(int fansNum) {
        this.fansNum = fansNum;
    }

    @Bindable
    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
        notifyPropertyChanged(BR.loginName);
    }
}
